HandshakeMessage{ }
HandshakeMessage{ }
write{
  buffer.writeByte(protocolStringLength);
  buffer.writeBytes(protocolString.getBytes());
  buffer.writeLong(reserved);
  buffer.writeBytes(torrentHash,0,20);
  buffer.writeBytes(peerID.getBytes(),0,20);
}
read{
  protocolStringLength=buffer.readByte();
  protocolString=buffer.readBytes(protocolStringLength).toString();
  reserved=buffer.readLong();
  torrentHash=buffer.readBytes(20).array();
  peerID=buffer.readBytes(20).toString(Charset.forName("UTF-8"));
}
toString{
}
